package com.coin900.coin.service.coin;

import com.coin900.coin.persist.fu.FuUserShareRecordVO;
import com.value.mybatis.IDaoRouter;
import com.value.mybatis.Pagination;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 分享统计表
 *
 * @author shui
 * @create 2018-1-29
 **/
@Service
public class FuUserShareRecordService implements IFuUserShareRecordService {

    @Override
    public List<FuUserShareRecordVO> loadFuUserShareRecord(Map<String, Object> params) {
        return this.daoRouter.query("FuUserShareRecord.loadFuUserShareRecord", params);
    }

    @Override
    public List<FuUserShareRecordVO> loadFuUserShareRecordForPage(Pagination pagination) {
        return this.daoRouter.query("FuUserShareRecord.loadFuUserShareRecordForPage", pagination);
    }

    @Override
    public void insertFuUserShareRecord(FuUserShareRecordVO fuUserShareRecordVO) {
        this.daoRouter.insert("FuUserShareRecord.insertFuUserShareRecord", fuUserShareRecordVO);
    }

    @Override
    public void deleteFuUserShareRecord(FuUserShareRecordVO fuUserShareRecordVO) {
        this.daoRouter.update("FuUserShareRecord.deleteFuUserShareRecord", fuUserShareRecordVO);
    }

    @Autowired
    private IDaoRouter daoRouter;

}